from applications import create_app
from flask_migrate import Migrate
from applications.extensions import db
from dotenv import dotenv_values

app = create_app()

migrate = Migrate(app, db)

if __name__ == "__main__":
    config = dotenv_values(".flaskenv")
    app.run(port=config.get("FLASK_RUN_PORT"))
